<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FoPubRight
 *
 * @author mssae-9
 */
class FoPubHiddenZone extends jZone {
 
	protected $_tplname='commun~FoPubHidden.zone';

	/**
	* Chargement des données pour affichage
	*/
	protected function _prepareTpl(){
        jClasses::inc('publicite~pubSrv');
        jClasses::inc('commun~parametre');
        $rubrique = $this->param('rubrique',PUB_RUBRIQUE_HOME);
        $pub1 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p1'));
        $pub2 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p4'));
        $pub3 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p3'));
        $pub4 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p4'));
        $pub5 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p5'));
        $pub6 = pubSrv::getByRubriqueAndLocation($rubrique, $this->param('p6'));
        $paramPub = array(
            'pub1'=>$pub1,
            'pub2'=>$pub2,
            'pub3'=>$pub3,
            'pub4'=>$pub4,
            'pub5'=>$pub5,
            'pub6'=>$pub6
            );

        $this->_tpl->assign($paramPub);  
    }
}

